import React from 'react'

class App extends React.Component {
    constructor() {
        super()
    }
    click(props) {
        props.history.push('/')
    }
    render() {
        console.log(this.props.match)
        return (
            <div>
                404
                <button onClick={() => this.click(this.props)}>
                    返回主页
                </button>
            </div>
        )
    }
}
export default App
